// homeVideo页面发送网络请求
import {myRequest} from "./request"

// 获取视频列表
export const reqgetVideoList = (offset = 0, limit = 20) => {
  return myRequest.get({
    url: "/top/mv",
    data: {
      limit,
      offset
    }
  })  
}

// 根据id获取详情页数据
export const reqgetDetailVideoData = (id) => {
  return myRequest.get({
    url: `/mv/detail?mvid=${id}`
  })
}

// 获取视频链接
export const reqgetDetailMvUrl = (id) => {
  return myRequest.get({
    url: `/mv/url?id=${id}`
  })
}

// 获取相关视频
export const reqgetRelatedAllVideo = (id) => {
  return myRequest.get({
    url: `/related/allvideo?id=${id}`
  })
}